<include file="Public:header" />
<div class="main">
    <div class="position"><p>您的当前位置：<a href="/">首页</a>  >  <a href="{:U('Ask/index')}">问答</a>   >
        <volist name='cate_nav' id='vo'>
           <a title="{$vo.name}" href="{:U('Ask/lists',array('alias'=>$vo['alias']))}">{$vo.name}</a>  >
        </volist>
    </p></div>
    <div class="m_t_15 overflow_h">
        <div class="body_left">
            <div class="ask_show01">
                <div class="ask_show01_n1">
                    <h2>{$info.title}</h2>
                    <p>提问者：{$info.user} | 浏览次数 {$info.hits} 次 | {$info.add_time|date='Y-m-d H:i:s',###}</p>
                </div>
                <div class="ask_show01_n2">
                    <div class="ask_info">
                        {$info.info}
                    </div>
                    <php>if($house){</php>
                    <div class="ask_house">
                        <span>相关楼盘:</span><a title="{$house.title}" href="{:U('House/detail',array('id'=>$house['id']))}" target="_blank">{$house.title}</a>
                    </div>
                    <php>}</php>
                    <h2><a href="javascript:;" class="but36">我有更好的答案</a></h2>
                    <div id="ask_answer">
                        <input type="hidden" id="ask_id" value="{$info.id}">
                        <p><textarea class="inp09" name="textarea" id="textarea" cols="45" rows="5">请在这输入您要回答的内容</textarea></p>
                        <p class="overflow_h"><span class="ask_show01_n2_sp"><a id="answerBut" href="javascript:;" class="but25">我要回答</a></span></p>
                    </div>
                </div>
            </div>

            <div class="ask_show02">
                <h1>更多网友回答：(共<span class="org">{$page_arr.count}</span>条)</h1>
                <volist name="page_arr['list']" id='vo'>
                <div class="ask_show03 overflow_h">
                    <span class="ask_show03_img"><a href="{:U('StoreAsk/index',array('uid'=>$vo['user_id']))}" target="_blank"><img alt="{$vo.username}" src="{$vo.head_ico}" width="52" height="52" /></a></span>
                    <div class="ask_show03_t">
                        <h2><span class="ask_show03_t_s1">{$vo.add_time|date='Y-m-d H:i:s',###}</span>回答者：<span class="org04"><a target="_blank" href="{:U('StoreAsk/index',array('uid'=>$vo['user_id']))}">{$vo.username}</a></span> <php>if($vo['hot_line']){</php> | 购房热线：<span class="org01">{$vo.hot_line}</span><php>}</php></h2>
                        <p>{$vo.info}</p>
                        <p  data-bid="{$vo.id}"><span data-boxtype="top" class="ask_show03_t_s2">{$vo.top}</span><span data-boxtype="step" class="ask_show03_t_s3">{$vo.step}</span></p>
                    </div>
                </div>
                </volist>
                <div class="plastic_bottom_pages">
                    {$page_arr.page}
                </div>
            </div>

            <div class="ask_show04">
                <h1 class="n_h_title"><span class="s_bg_line">相关问答</span><span class="more"><a href="{:U('Ask/lists',array('alias'=>$cate['alias']))}">更多</a></span></h1>
                <ul>
                    <volist name='rec_list' id='vo'>
                        <li><a title="{$vo.title}" href="{:U('Ask/detail',array('id'=>$vo['id']))}">{$vo.title}</a></li>
                    </volist>
                </ul>
            </div>


        </div>
        <div class="body_right">
            <div class="ask_list_r01">
                <p><input name="textfield2" type="text" class="inp07" id="askTitle" value="请输入标题" /></p>
                <p><textarea name="textfield3" class="inp08" id="askInfo">请在这输入问题详细内容描述</textarea></p>
                <p class="overflow_h">
                <span class="adl_list_sp1">
                  <select class="select03" name="select" id="askCateId">
                      <option value="0">--请选择分类--</option>
                      <volist name='ask_cate' id='val'>
                          <option value="{$val.id}">{$val.html}{$val.name}</option>
                      </volist>
                  </select>
                </span>
                    <span class="adl_list_sp2"><a  href="javascript:;" id="askBut" class="but35">提交问题</a></span></p>
            </div>

            <div class="ask_fenlei">
                <h1 class="ask_fenl">问答分类</h1>
                <volist name='ask_cate_list' id='val'>
                    <h2>{$val.name}</h2>
                    <ul class="overflow_h">
                        <volist name='val.child' id='vo'>
                            <li><a title="{$vo.name}" href="{:U('Ask/lists',array('alias'=>$vo['alias']))}">{$vo.name}</a></li>
                        </volist>
                    </ul>
                </volist>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript" src="__JS__/jquery.js"></script>
<script type="text/javascript" src="__JS__/layer/layer.js"></script>
<script type="text/javascript" src="__JS__/public.js"></script>
<script type="text/javascript">
    $("#askTitle").fangCmsText();
    $("#askInfo").fangCmsText();
    $("#textarea").fangCmsText();
    $("#askBut").click(function(){
        var url = "{:U('Ajax/addAsk')}";
        ask_add(url);
    });
    $("#answerBut").click(function(){
        var url = "{:U('Ajax/addAnswer')}";
        answer_add(url);
    });
    $(".but36").click(function(){
        $("#ask_answer").toggle(800);
    });
    $(".ask_show03_t_s2,.ask_show03_t_s3").click(function(){
        var t = $(this);
        var url = "{:U('Ajax/topStep')}";
        top_step(url,t);
    });
</script>
<include file="Public:footer" />